package kr.ne.jay.SimpleString;

import java.util.Vector;

public class TouchConstraint implements IConstraint {
	private Vector2f	m_pos;
	
	public TouchConstraint(Vector2f pos) {
		m_pos = pos;
	}

	@Override
	public void calcConstraint(Vector<VerletPoint> points) {
		points.lastElement().pos = m_pos;
	}

	public void setPos(Vector2f pos) {
		m_pos = pos;		
	}
}
